﻿<UserControl x:Class="VinoCellar.Controls.WineDetailsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Model="clr-namespace:VinoCellar.Model"
             mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    <UserControl.Resources>
        <Model:WineItem x:Key="wineItem" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

            <TextBlock Grid.Row="0" Name="lblName" FontSize="32" FontWeight="Normal" TextWrapping="Wrap" />
        <TextBlock Grid.Row="1" Height="30" HorizontalAlignment="Right" Name="lblPrice" Text="TextBlock" VerticalAlignment="Top" TextAlignment="Right" Width="109" />

        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="40"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="40"/>
                <RowDefinition Height="40"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="140" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="1" Grid.Column="0" Height="30" HorizontalAlignment="Left" Text="Country:" VerticalAlignment="Top" FontWeight="Bold" Width="118" />
            <TextBlock Grid.Row="1" Grid.Column="1" Height="30" HorizontalAlignment="Right" Name="lblCountry" VerticalAlignment="Top" Width="317" />
            <TextBlock Grid.Row="0" Grid.Column="0" FontWeight="Bold" Height="30" Text="Category:" VerticalAlignment="Top" HorizontalAlignment="Left" Width="118" />
            <TextBlock Grid.Row="0" Grid.Column="1" Height="30" DataContext="{Binding WineCategory}" HorizontalAlignment="Right" Name="lblCategory" Text="TextBlock" VerticalAlignment="Top" Width="317" />
            <TextBlock Grid.Row="2" Grid.Column="0" FontWeight="Bold" Height="30" HorizontalAlignment="Left" Text="Region:" VerticalAlignment="Top" Width="118" />
            <TextBlock Grid.Row="2" Grid.Column="1" Height="30" HorizontalAlignment="Right" Name="lblRegion" Text="TextBlock" VerticalAlignment="Top" Width="317" />
            <TextBlock Grid.Row="3" Grid.Column="0" FontWeight="Bold" Height="30" HorizontalAlignment="Left" Text="Appellation:" VerticalAlignment="Top" Width="118" />
            <TextBlock Grid.Row="3" Grid.Column="1" Height="30" HorizontalAlignment="Right" Name="lblAppellation" Text="TextBlock" VerticalAlignment="Top" Width="317" />
        </Grid>
        <Image Grid.Row="3" Height="261" HorizontalAlignment="Left" Name="image" Stretch="Uniform" VerticalAlignment="Top" Width="180" />
        <Button Grid.Row="4" Content="Add to library" Height="72" HorizontalAlignment="Right" Name="btnAdd" VerticalAlignment="Top" Width="243" IsEnabled="True" Visibility="Collapsed" />
    </Grid>
</UserControl>
